﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MediaRecommender.Model;

namespace MediaRecommender
{
    public partial class Default : BasePage
    {

        private Events events = new Events();
        protected override void PageLoadEvent(object sender, EventArgs e)
        {
            events.UserChange += testHandler;
            Test.Text = "*";
        }

        protected void Button_Login_Click(object sender, EventArgs e)
        {
            Test.Text = "clicked";
            events.UserToChange = new User("Bo", DateTime.Now, Sex.Male, null);
        }

        public void testHandler(object sender, Events.UserArgs e)
        {
            Test.Text = e.User.Name + "heeey";
        }
    }
}